import { createHash } from 'node:crypto';

export function hash (data: string, algorithm = 'md5') {
  return createHash(algorithm).update(data).digest('hex');
}
